#ifndef MYCANVAS_H
#define MYCANVAS_H

#include <GL/gl.h>

#include "canvas.h"
#include "scene.h"
#include "cursor.h"
#include "filter.h"

class MyCanvas : public WimpCanvas{
    private:
        map<int, Trace> traces;

    public:
        MyCanvas(Scene *_scene);
        ~MyCanvas(){}

        void onPressCursor(Cursor &cursor);
        void onMoveCursor(Cursor &cursor);
        void onReleaseCursor(Cursor &cursor);

        void paint();
        void initialize();        
        void resizeCanvas(int width, int height);
};

#endif //MYCANVAS_H
